//
//  ChainNavBarView.h
//  Chain
//
//  Created by zhaosh on 2018/4/3.
//  Copyright © 2018年 zhaosh. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef NS_ENUM(NSUInteger, FXNavType) {
    ChainNavTypeSearch,
    ChainNavTypeOnlyTitle,
    ChainNavTypeTitleAndSearch,
    ChainNavTypeSearchAndRightOtherButton
};

typedef void(^titleClickedBlock)(void);
typedef void(^searchClickedBlock)(void);//右侧有搜索按钮使用，如果是搜索框就不使用。
typedef void(^rightOtherButtonClickedBlock)(void); //右侧其他点击时间按钮使用

@interface ChainNavBarView : UIView
@property(copy,nonatomic)titleClickedBlock block;
@property(copy,nonatomic)searchClickedBlock searchBlock;
@property(copy,nonatomic)rightOtherButtonClickedBlock otherButtonBlock;
@property(copy,nonatomic)NSString * buriedPointCode;
- (instancetype)initWithFrame:(CGRect)frame Type:(FXNavType)type placeholderStr:(NSString *)str vc:(UINavigationController *)vc;
@end
